import request from '@/utils/request';

export async function getPageData(params) {
  return request('/api/cdcerservice/v1/reportProgress/listPageData', {
    method: 'POST',
    requestType: 'form',
    data: {
      ...params
    }
  });
}

/**
 * 点击导出所有信息
 * @returns {Promise<any>}
 * @param params
 */
export async function queryAllExportData(params) {
  return request(`/api/cdcerservice/v1/reportProgress/exportData`, {
    method: 'POST',
    requestType: 'form',
    responseType: 'blob',
    data: {
      ...params
    }
  });
}
